﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=10,IE=9,IE=8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<title>php博客_PHP编程_源码分享_互补PHP开发经验-<?php echo $config['site_name']?></title>
<meta name="keywords" content="<?php echo $config['site_keyword']?>">
<meta name="description" content="<?php echo $config['description']?>">
<link rel='dns-prefetch' href='//cdn.bootcss.com' />
<link rel='dns-prefetch' href='//s.w.org' />
<link rel='stylesheet' id='style-css'  href='__HOME__/style/style.css' type='text/css' media='all' />
<link rel='stylesheet' id='toc-screen-css'  href='__HOME__/style/screen.min.css' type='text/css' media='all' />
<style>.article-content{font-size: 14px;}@media (max-width:640px){.article-content{font-size:16px}}
.navbar .logo{width:160px}@media (max-width: 979px){.navbar .logo{width:100%}}</style>
	<!--[if lt IE 9]><script src="__HOME__/js/html5.js"></script><![endif]-->
</head>
<body class="home blog">
<div class="navbar-wrap">
	{include file="public:head" /}
<header class="header"></header>
<section class="container">
<div class="content-wrap">
	<div class="content">
	<div class="sticky">
	<h2 class="title">置顶推荐</h2>
	<ul>
		<?php foreach($article_top as $v){?>
		<li class="item">
			<a href="/article/<?php echo $v['id']?>">
				<img src="/uploads/<?php echo $v['image']?>" alt="<?php echo $v['title']?>" />
				<h3><?php echo $v['title']?></h3>
				<p class="muted"><?php echo $v['introduction']?></p>
			</a>
		</li>
		<?php } ?>
	</ul>
</div>
		<h2 class="title">最新发布</h2>
		<?php foreach($article as $v){?>
		<article class="excerpt excerpt-nothumbnail">
			<header>
				<a class="label label-important" href="/category/<?php echo $v['type_id']?>" target="_blank"><?php echo $v['type_name']?><i class="label-arrow"></i></a>
				<h2><a href="/article/<?php echo $v['id']?>" target="_blank" title="<?php echo $v['title']?> - phpbloger"><?php echo $v['title']?></a></h2>
			</header>
			<p>
			<span class="muted"><i class="icon-time icon12"></i> <?php echo formatDate($v['create_time'])?></span>
			<span class="muted"><i class="icon-eye-open icon12"></i> <?php echo $v['reading_num']?>浏览</span>
			<span class="muted"><i class="icon-comment icon12"></i>
				<a href="/article/<?php echo $v['id']?>#respond">
					<span id = "sourceId::<?php echo $v['id']?>" class = "cy_cmt_count" ></span>
					<script id="cy_cmt_num" src="https://changyan.sohu.com/upload/plugins/plugins.list.count.js?clientId=cyryTyLri"></script>评论</a>
			</span>
			</p>
			<p class="note"><?php echo $v['introduction']?></p>
		</article>
		<?php } ?>
		<div class="pagination">
			<?php echo $page?>
		</div>
	</div>
</div>
<aside class="sidebar">
	{include file="public:right" /}
	<div class="widget widget_text"><h3 class="widget_tit">友情链接</h3>
		<div class="textwidget"><div class="widget_pages">
		<ul>
			<?php foreach($link as $v){?>
				<li class="page_item page-item-2"><a href="<?php echo $v['link_url']?>" target="_blank"><?php echo $v['link_name']?></a></li>
			<?php } ?>
		</ul>
	</div>
		</div>
		</div>
</aside>
</section>
	{include file="public:footer" /}
</div>
</body>
</html>
